package cn.tedu;

import java.util.Scanner;

/*本类用于综合系统编写---等级划分*/
public class Hierarchy {
}
abstract class Stage{//等级
    static{
        System.out.println("请输入您的姓名");
        String name = new Scanner(System.in).next();
        System.out.println(name+"欢迎进入招聘系统空间");
    }
    private double pay;//薪资
//    private String degree;//学位
    private String najor;//专业
    private String treatment;//待遇

    public double getPay() {
        return pay;
    }

    public void setPay(double pay) {
        this.pay = pay;
    }

//    public String getDegree() {
//        return degree;
//    }
//
//    public void setDegree(String degree) {
//        this.degree = degree;
//    }

    public String getNajor() {
        return najor;
    }

    public void setNajor(String najor) {
        this.najor = najor;
    }

    public String getTreatment() {
        return treatment;
    }

    public void setTreatment(String treatment) {
        this.treatment = treatment;
    }

    public abstract void course();//课程
    public abstract void hour();//课时
    public abstract void cost();//费用

}
//初级
class Primary extends Stage{

    public void course(){
        System.out.println("一天6节课");
    }
    public void hour(){
        System.out.println("一节课45分钟");
    }
    public void cost(){
        System.out.println("一节课20元");
    }
}
//中级
class Intermediate extends Stage{
    public void course(){
        System.out.println("一天4节课");
    }
    public void hour(){
        System.out.println("一节课60分钟");
    }
    public void cost(){
        System.out.println("一节课40元");
    }
}
//高级
class Advanced extends Stage{
    public void course(){
        System.out.println("一天2节课");
    }
    public void hour(){
        System.out.println("一节课一个半小时");
    }
    public void cost(){
        System.out.println("一节课60元");
    }
}